<?php

namespace Rebecca\RebeccaBundle\Form;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;

class AusentismosType extends AbstractType
{
    public function buildForm(FormBuilder $builder, array $options)
    {
        $builder
            ->add('tipo', 'choice', array('choices' => 
                array(
                    '1' => 'Vacaciones',                     
                    '2' => 'Falta no Justificada',
                    ), 
                'label' => 'Tipo'))
            ->add('fechaInicio', null, array('widget' => 'single_text', 'format' => 'd/M/yyyy', 'label' => 'Fecha de Inicio'))
            ->add('dias')
            ->add('descripcion')            
        ;
    }

    public function getName()
    {
        return 'rebecca_rebeccabundle_ausentismostype';
    }
}
